package dao

import "study_abroad_system_back_end/models"

func IsUsernameExist(telephone string) bool {
	var user models.User
	DB.Where("telephone=?", telephone).First(&user)
	if user.ID != 0 {
		return true
	}
	return false
}